package cn.tedu.nybikeT.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * @author Liu-R
 *
 */
public class PopularStationVO implements Serializable {

	private static final long serialVersionUID = 1045000668642498488L;

	private List<Integer> topCountXData;
	private List<String> topCountNameData;
	private List<Integer> topCountYData;
	private List<Integer> lastCountXData;
	private List<String> lastCountNameData;
	private List<Integer> lastCountYData;

	public PopularStationVO() {
		super();
		// TODO Auto-generated constructor stub
	}

	public PopularStationVO(List<Integer> topCountXData, List<String> topCountNameData, List<Integer> topCountYData,
			List<Integer> lastCountXData, List<String> lastCountNameData, List<Integer> lastCountYData) {
		super();
		this.topCountXData = topCountXData;
		this.topCountNameData = topCountNameData;
		this.topCountYData = topCountYData;
		this.lastCountXData = lastCountXData;
		this.lastCountNameData = lastCountNameData;
		this.lastCountYData = lastCountYData;
	}

	public List<Integer> getTopCountXData() {
		return topCountXData;
	}

	public void setTopCountXData(List<Integer> topCountXData) {
		this.topCountXData = topCountXData;
	}

	public List<String> getTopCountNameData() {
		return topCountNameData;
	}

	public void setTopCountNameData(List<String> topCountNameData) {
		this.topCountNameData = topCountNameData;
	}

	public List<Integer> getTopCountYData() {
		return topCountYData;
	}

	public void setTopCountYData(List<Integer> topCountYData) {
		this.topCountYData = topCountYData;
	}

	public List<Integer> getLastCountXData() {
		return lastCountXData;
	}

	public void setLastCountXData(List<Integer> lastCountXData) {
		this.lastCountXData = lastCountXData;
	}

	public List<String> getLastCountNameData() {
		return lastCountNameData;
	}

	public void setLastCountNameData(List<String> lastCountNameData) {
		this.lastCountNameData = lastCountNameData;
	}

	public List<Integer> getLastCountYData() {
		return lastCountYData;
	}

	public void setLastCountYData(List<Integer> lastCountYData) {
		this.lastCountYData = lastCountYData;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((lastCountNameData == null) ? 0 : lastCountNameData.hashCode());
		result = prime * result + ((lastCountXData == null) ? 0 : lastCountXData.hashCode());
		result = prime * result + ((lastCountYData == null) ? 0 : lastCountYData.hashCode());
		result = prime * result + ((topCountNameData == null) ? 0 : topCountNameData.hashCode());
		result = prime * result + ((topCountXData == null) ? 0 : topCountXData.hashCode());
		result = prime * result + ((topCountYData == null) ? 0 : topCountYData.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PopularStationVO other = (PopularStationVO) obj;
		if (lastCountNameData == null) {
			if (other.lastCountNameData != null)
				return false;
		} else if (!lastCountNameData.equals(other.lastCountNameData))
			return false;
		if (lastCountXData == null) {
			if (other.lastCountXData != null)
				return false;
		} else if (!lastCountXData.equals(other.lastCountXData))
			return false;
		if (lastCountYData == null) {
			if (other.lastCountYData != null)
				return false;
		} else if (!lastCountYData.equals(other.lastCountYData))
			return false;
		if (topCountNameData == null) {
			if (other.topCountNameData != null)
				return false;
		} else if (!topCountNameData.equals(other.topCountNameData))
			return false;
		if (topCountXData == null) {
			if (other.topCountXData != null)
				return false;
		} else if (!topCountXData.equals(other.topCountXData))
			return false;
		if (topCountYData == null) {
			if (other.topCountYData != null)
				return false;
		} else if (!topCountYData.equals(other.topCountYData))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "PopularStationVO [topCountXData=" + topCountXData + ", topCountNameData=" + topCountNameData
				+ ", topCountYData=" + topCountYData + ", lastCountXData=" + lastCountXData + ", lastCountNameData="
				+ lastCountNameData + ", lastCountYData=" + lastCountYData + "]";
	}

}
